import HttpRequest from '../utils/http.js';

export default class LikeModel extends HttpRequest{
  like(like,artId,categary){
    let url = like == 'like' ? '/like' : '/like/cancel';
    this.request({
      url:url,
      method:'POST',
      data:{
        art_id: artId,
        type: categary
      }
    })
  }
}